package com.atguigu.gulimall.order.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.order.feign.fallback.ProductFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description
 * @Author lhj
 * @Date 2024/5/4 18:53
 */
@FeignClient(name = "gulimall-product", fallback = ProductFeignFallback.class)
public interface ProductFeignService {
    
    /**
     * product/spuinfo
     * 根据skuId 获取 spuInfo
     * @param skuId
     * @return
     */
    @GetMapping("/product/spuinfo/getSpuInfoBySkuId/{skuId}")
    R getSpuInfoBySkuId(@PathVariable("skuId") Long skuId);
    
}
